------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  E:\UNIVERSITAT\PHD\PHD\PAPERS\PAPER - AID - FDI\SUBMISSIONS\PSRM\PSRM REPLICATION MATERIALS\PSRM_Aid_FDI_Personalism_Su
> mStats-stata.log
  log type:  text
 opened on:  10 Oct 2024, 18:56:39

. set more off

. 
. 
. ********************************************************************************
. *                                                                              * 
. * Foreign Aid, FDI and the Personalization of Power in Autocracies             *
. * Bernat Puertas* and Abel Escribà-Folch*+                                     *
. * *Universitat Pompeu Fabra                                                    *
. * +Institut Barcelona d'Estudis Internacionals                                 *
. * Contact: bernat.puertas@upf.edu                                              *
. *                                                                              *  
. ********************************************************************************
. 
. 
. cd "E:\UNIVERSITAT\PHD\PHD\PAPERS\PAPER - AID - FDI\SUBMISSIONS\PSRM\PSRM REPLICATION MATERIALS"
E:\UNIVERSITAT\PHD\PHD\PAPERS\PAPER - AID - FDI\SUBMISSIONS\PSRM\PSRM REPLICATION MATERIALS

. 
. 
. use aid-fdi-personalism_NEW
(Written by R)

. 
. * The following code produces Table A1 in the Appendix 
. 
. 
. * Table A1
. 
. 
. *use file = aid-fdi-personalism_NEW.dta
. 
. xtset leader_id year
       panel variable:  leader_id (unbalanced)
        time variable:  year, 1946 to 2010
                delta:  1 unit

. 
. 
. xtsum personalism oda_constant_pc_pos_log_lag fdi_cpi_pc_pos_log_lag gdppc_log_lag gdppc_growth_lag population_log_lag oilpc_log_l
> ag civilwar_lag leader_duration_log_lag

Variable         |      Mean   Std. Dev.       Min        Max |    Observations
-----------------+--------------------------------------------+----------------
person~m overall |  .4199273   .2770179          0          1 |     N =    4591
         between |             .2506485          0   .9789129 |     n =     526
         within  |             .1132373   -.288871   1.035329 | T-bar = 8.72814
                 |                                            |
oda_co.. overall |  3.348207   1.279494          0   7.470645 |     N =    3137
         between |             1.183006          0   6.019778 |     n =     350
         within  |             .5733715  -1.311943   6.532448 | T-bar = 8.96286
                 |                                            |
fdi_cp.. overall |  3.871498   3.977732          0    35.1366 |     N =    2012
         between |             3.495993          0   27.59478 |     n =     254
         within  |             2.454342   -14.5382    20.5984 | T-bar = 7.92126
                 |                                            |
gd~g_lag overall |  7.391052   1.169544   4.970032   11.64437 |     N =    2909
         between |             1.097959   5.170324   11.18047 |     n =     337
         within  |             .1730953   6.491616   8.226338 | T-bar = 8.63205
                 |                                            |
gd~h_lag overall |  2.049373   6.853191  -64.42584    77.5111 |     N =    2885
         between |             4.583223  -14.47565   41.30753 |     n =     336
         within  |             5.908629  -67.12179    53.9402 | T-bar = 8.58631
                 |                                            |
popula.. overall |  16.02348   1.386753   12.84315   21.00939 |     N =    3551
         between |              1.36928   12.94791   20.99067 |     n =     389
         within  |             .1729242   14.69331    16.9674 | T-bar = 9.12853
                 |                                            |
oi~g_lag overall |  2.525291   3.046549          0   11.33094 |     N =    3867
         between |             2.794741          0   10.29439 |     n =     438
         within  |              .689354  -4.221706   8.099396 | T-bar = 8.82877
                 |                                            |
civilw~g overall |  .1314196   .3378966          0          1 |     N =    4459
         between |             .3472114          0          1 |     n =     516
         within  |              .161409  -.7776713    1.08142 | T-bar = 8.64147
                 |                                            |
le~g_lag overall |  2.094675   .8329432          0   4.025352 |     N =    4065
         between |             .6449713          0   3.730823 |     n =     428
         within  |             .5938375  -.6394724   3.024089 | T-bar = 9.49766

. 
. 
. * We edit the table in LaTeX and for the "between" and "within" stats we only include the Standard Deviation
. 
. log close
      name:  <unnamed>
       log:  E:\UNIVERSITAT\PHD\PHD\PAPERS\PAPER - AID - FDI\SUBMISSIONS\PSRM\PSRM REPLICATION MATERIALS\PSRM_Aid_FDI_Personalism_Su
> mStats-stata.log
  log type:  text
 closed on:  10 Oct 2024, 18:56:39
------------------------------------------------------------------------------------------------------------------------------------
